﻿@model ModelBindingDemo.Models.Employee1
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
</head>
<body>
    <div>
        @using (Html.BeginForm("Edit4", "Home1"))
        { 
            @ViewBag.status
                
            <table>
                <tr>
                    <td align="right" nowrap="nowrap" width="15%">
                        <input name="[0].id" type="text" size="20" />
                    </td>
                    <td>
                        <input name="[0].name" type="text" />
                    </td>
                      <td>
                        <input name="[0].address[0].street" type="text" />
                         <input name="[0].address[1].street" type="text" />
                    </td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap" width="15%">
                        <input name="[1].id" type="text" size="20" />
                    </td>
                    <td>
                        <input name="[1].name" type="text" />
                    </td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap" width="15%">
                        <input name="[2].id" type="text" />
                    </td>
                    <td>
                        <input name="[2].name" type="text" />
                    </td>
                </tr>
            </table>
            
            <input type="submit" value="post back" />
        }
    </div>
</body>
</html>
